package com.atguigu.edu.realtime.publisher.service.impl;

import com.atguigu.edu.realtime.publisher.bean.TrafficVideoPlayCount;
import com.atguigu.edu.realtime.publisher.bean.TrafficVideoPlayPersonCount;
import com.atguigu.edu.realtime.publisher.bean.TrafficVideoPlayTimeSum;
import com.atguigu.edu.realtime.publisher.mapper.TrafficVideoPlayMapper;
import com.atguigu.edu.realtime.publisher.service.TrafficVideoPlayStatsService;
import org.springframework.beans.factory.annotation.Autowired;

import java.util.List;

public class TrafficVideoPlayStateServiceImpl implements TrafficVideoPlayStatsService {

    @Autowired
    TrafficVideoPlayMapper trafficVideoPlayMapper;

    @Override
    public List<TrafficVideoPlayCount> getPlCt(Integer date) {
        return trafficVideoPlayMapper.selectPlCt(date);
    }

    @Override
    public List<TrafficVideoPlayTimeSum> getTmSum(Integer date) {
        return trafficVideoPlayMapper.selectTmSum(date);
    }

    @Override
    public List<TrafficVideoPlayPersonCount> getWtCt(Integer date) {
        return trafficVideoPlayMapper.selectWtCt(date);
    }
}
